<?php

if ( ! defined('BASEPATH'))
    exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| COUNTRIES AND STATES ROUTES
| -------------------------------------------------------------------------
|
| 
|
| -------------------------------------------------------------------------
*/

// Countries
$route['api/countries']                             = "cms-countries/countries_api";

$route['api/countries/:num']                        = "cms-countries/countries_api/get_country_by_id";
$route['api/countries/([a-zA-Z]+)']                 = "cms-countries/countries_api/get_country_by_code";

$route['api/countries/:num/cities']                 = "cms-countries/countries_api/get_cities_get_by_country_id";
$route['api/countries/:num/cities/:any']            = "cms-countries/countries_api/get_cities_get_by_country_id";

$route['api/countries/([a-zA-Z]+)/cities']          = "cms-countries/countries_api/get_cities_get_by_country_code";
$route['api/countries/([a-zA-Z]+)/cities/:any']     = "cms-countries/countries_api/get_cities_get_by_country_code";

$route['api/countries/:num/:any']                   = "cms-countries/countries_api/get_country_by_id";
$route['api/countries/:any']                        = "cms-countries/countries_api";


/* End of file routes.php */
/* Location: ./application/modules/cms-countries/config/routes.php */